//
//  FindCollectTableViewCell.m
//  Qyer
//
//  Created by 赵宇 on 15/9/24.
//  Copyright (c) 2015年 赵宇. All rights reserved.
//

#import "FindCollectTableViewCell.h"

@implementation FindCollectTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.pic = [[UIImageView alloc]initWithFrame:CRM(10, 5, 100, 100)];
        [self.contentView addSubview:self.pic];
        
        self.cnnameLab = [[UILabel alloc]initWithFrame:CRM(120, 5, 240, 25)];
        [self.contentView addSubview:self.cnnameLab];
        
        self.enname = [[UILabel alloc]initWithFrame:CRM(120, 40, 240, 25)];
        self.enname.textColor = [UIColor grayColor];
        self.enname.font = [UIFont systemFontOfSize:13.];
        [self.contentView addSubview:self.enname];
        
        self.beenLab = [[UILabel alloc]initWithFrame:CRM(120, 80, 200, 25)];
        self.beenLab.textColor = [UIColor lightGrayColor];
        self.beenLab.font = [UIFont systemFontOfSize:13.];
        [self.contentView addSubview:self.beenLab];
        
        self.classLab = [[UILabel alloc]initWithFrame:CRM(310, 80, 60, 25)];
        self.classLab.font = [UIFont systemFontOfSize:14.];
        self.classLab.textColor = [UIColor lightGrayColor];
        [self.contentView addSubview:self.classLab];
        
    }
    return self;
}
-(void)setValueWithMyCollectMod:(MyCollectModel *)mod
{
    NSURL *url = [NSURL URLWithString:mod.photo];
    [self.pic sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"zhanweiPic"]];
    self.cnnameLab.text = mod.cnname;
    self.enname.text = mod.enname;
    self.beenLab.text = mod.beenstr;
    self.classLab.text = mod.label;
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
